/**
 * Copyright (C), 2020-2021,贵州铭明网络科技有限公司
 * FileName: RefundVo
 * Author:   杨朝湖
 * Date:     2021/3/4 11:00
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.xiaowen.wxpaytool.modle;



import java.util.List;

/**
 * @author 重庆小文
 */

public class RefundRequest {

    private String out_trade_no;//支付时商户订单号

    private String out_refund_no;// 商户退款订单号

    private RefundAmount amount;//退款金额

    private String notify_url;//回调路径

    public RefundRequest() {
    }

    public RefundRequest(String out_trade_no,String out_refund_no, Integer amount,String notify_url) {
        this.out_trade_no = out_trade_no;
        this.out_refund_no = out_refund_no;
        this.notify_url=notify_url;
        this.amount = new RefundAmount(amount);
    }

    class RefundAmount {
     private Integer refund;
     private Integer total;
     private String currency="CNY";

        public RefundAmount(Integer total) {
            this.total = total;
            this.refund=total;
        }

        public Integer getRefund() {
            return refund;
        }

        public void setRefund(Integer refund) {
            this.refund = refund;
        }

        public Integer getTotal() {
            return total;
        }

        public void setTotal(Integer total) {
            this.total = total;
        }

        public String getCurrency() {
            return currency;
        }

        public void setCurrency(String currency) {
            this.currency = currency;
        }
    }

    public String getOut_refund_no() {
        return out_refund_no;
    }

    public void setOut_refund_no(String out_refund_no) {
        this.out_refund_no = out_refund_no;
    }

    public String getOut_trade_no() {
        return out_trade_no;
    }

    public void setOut_trade_no(String out_trade_no) {
        this.out_trade_no = out_trade_no;
    }

    public RefundAmount getAmount() {
        return amount;
    }

    public void setAmount(RefundAmount amount) {
        this.amount = amount;
    }

    public String getNotify_url() {
        return notify_url;
    }

    public void setNotify_url(String notify_url) {
        this.notify_url = notify_url;
    }
}